@extends('home.base')
@section('content')
@foreach($config as $b)
<link rel="stylesheet" type="text/css" href="./forsearch_files/theme_1.css">
<!--<link rel="Stylesheet" type="text/css" href="css/model/home.css" />-->
<link rel="stylesheet" type="text/css" href="./forsearch_files/search_pub.css">
  <link rel="Stylesheet" type="text/css" href="./forsearch_files/header_150803.css">
  <script type="text/javascript" async="" src="./forsearch_files/s.js"></script>
  <script src="./forsearch_files/adv.js"></script>
  <script type="text/javascript" async="" src="./forsearch_files/mvl.js"></script>
  <script async="true" type="text/javascript" src="./forsearch_files/event" data-owner="criteo-tag"></script>
  <script type="text/javascript">eval(function(p, a, c, k, e, r) {
      e = function(c) {
        return (c < a ? '': e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36))
      };
      if (!''.replace(/^/, String)) {
        while (c--) r[e(c)] = k[c] || e(c);
        k = [function(e) {
          return r[e]
        }];
        e = function() {
          return '\\w+'
        };
        c = 1
      };
      while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]);
      return p
    } ('r(1c 1H=="O"){o U;(p(){o k={1d:"1I.1J",1e:\'1K\',D:\'O\',1f:\'O\'};k.1g={1h:0,1L:"",F:8,1i:p(a){o b=l.1h?"1M":"1N";o c="";P(o i=0;i<a.B*4;i++){c+=b.1j((a[i>>2]>>((i%4)*8+4))&1k)+b.1j((a[i>>2]>>((i%4)*8))&1k)}u c},1l:p(x,e){x[e>>5]|=1O<<((e)%32);x[(((e+1P)>>>9)<<4)+14]=e;o a=1Q;o b=-1R;o c=-1S;o d=1T;P(o i=0;i<x.B;i+=16){o f=a;o g=b;o h=c;o j=d;a=l.v(a,b,c,d,x[i+0],7,-1U);d=l.v(d,a,b,c,x[i+1],12,-1V);c=l.v(c,d,a,b,x[i+2],17,1W);b=l.v(b,c,d,a,x[i+3],22,-1X);a=l.v(a,b,c,d,x[i+4],7,-1Y);d=l.v(d,a,b,c,x[i+5],12,1Z);c=l.v(c,d,a,b,x[i+6],17,-24);b=l.v(b,c,d,a,x[i+7],22,-25);a=l.v(a,b,c,d,x[i+8],7,26);d=l.v(d,a,b,c,x[i+9],12,-27);c=l.v(c,d,a,b,x[i+10],17,-28);b=l.v(b,c,d,a,x[i+11],22,-29);a=l.v(a,b,c,d,x[i+12],7,2a);d=l.v(d,a,b,c,x[i+13],12,-2b);c=l.v(c,d,a,b,x[i+14],17,-2c);b=l.v(b,c,d,a,x[i+15],22,2d);a=l.w(a,b,c,d,x[i+1],5,-2e);d=l.w(d,a,b,c,x[i+6],9,-2f);c=l.w(c,d,a,b,x[i+11],14,2g);b=l.w(b,c,d,a,x[i+0],20,-2h);a=l.w(a,b,c,d,x[i+5],5,-2i);d=l.w(d,a,b,c,x[i+10],9,2j);c=l.w(c,d,a,b,x[i+15],14,-2k);b=l.w(b,c,d,a,x[i+4],20,-2l);a=l.w(a,b,c,d,x[i+9],5,2m);d=l.w(d,a,b,c,x[i+14],9,-2n);c=l.w(c,d,a,b,x[i+3],14,-2o);b=l.w(b,c,d,a,x[i+8],20,2p);a=l.w(a,b,c,d,x[i+13],5,-2q);d=l.w(d,a,b,c,x[i+2],9,-2r);c=l.w(c,d,a,b,x[i+7],14,2s);b=l.w(b,c,d,a,x[i+12],20,-2t);a=l.z(a,b,c,d,x[i+5],4,-2u);d=l.z(d,a,b,c,x[i+8],11,-2v);c=l.z(c,d,a,b,x[i+11],16,2w);b=l.z(b,c,d,a,x[i+14],23,-2x);a=l.z(a,b,c,d,x[i+1],4,-2y);d=l.z(d,a,b,c,x[i+4],11,2z);c=l.z(c,d,a,b,x[i+7],16,-2A);b=l.z(b,c,d,a,x[i+10],23,-2B);a=l.z(a,b,c,d,x[i+13],4,2C);d=l.z(d,a,b,c,x[i+0],11,-2D);c=l.z(c,d,a,b,x[i+3],16,-2E);b=l.z(b,c,d,a,x[i+6],23,2F);a=l.z(a,b,c,d,x[i+9],4,-2G);d=l.z(d,a,b,c,x[i+12],11,-2H);c=l.z(c,d,a,b,x[i+15],16,2I);b=l.z(b,c,d,a,x[i+2],23,-2J);a=l.A(a,b,c,d,x[i+0],6,-2K);d=l.A(d,a,b,c,x[i+7],10,2L);c=l.A(c,d,a,b,x[i+14],15,-2M);b=l.A(b,c,d,a,x[i+5],21,-2N);a=l.A(a,b,c,d,x[i+12],6,2O);d=l.A(d,a,b,c,x[i+3],10,-2P);c=l.A(c,d,a,b,x[i+10],15,-2Q);b=l.A(b,c,d,a,x[i+1],21,-2R);a=l.A(a,b,c,d,x[i+8],6,2S);d=l.A(d,a,b,c,x[i+15],10,-2T);c=l.A(c,d,a,b,x[i+6],15,-2U);b=l.A(b,c,d,a,x[i+13],21,2V);a=l.A(a,b,c,d,x[i+4],6,-2W);d=l.A(d,a,b,c,x[i+11],10,-2X);c=l.A(c,d,a,b,x[i+2],15,2Y);b=l.A(b,c,d,a,x[i+9],21,-2Z);a=l.C(a,f);b=l.C(b,g);c=l.C(c,h);d=l.C(d,j)}u V(a,b,c,d)},J:p(q,a,b,x,s,t){u l.C(l.1m(l.C(l.C(a,q),l.C(x,t)),s),b)},v:p(a,b,c,d,x,s,t){u l.J((b&c)|((~b)&d),a,b,x,s,t)},w:p(a,b,c,d,x,s,t){u l.J((b&d)|(c&(~d)),a,b,x,s,t)},z:p(a,b,c,d,x,s,t){u l.J(b^c^d,a,b,x,s,t)},A:p(a,b,c,d,x,s,t){u l.J(c^(b|(~d)),a,b,x,s,t)},1n:p(a){o b=V();o c=(1<<l.F)-1;P(o i=0;i<a.B*l.F;i+=l.F)b[i>>5]|=(a.30(i/l.F)&c)<<(i%32);u b},C:p(x,y){o a=(x&W)+(y&W);o b=(x>>16)+(y>>16)+(a>>16);u(b<<16)|(a&W)},1m:p(a,b){u(a<<b)|(a>>>(32-b))},1o:p(s){u l.1i(l.1l(l.1n(s),s.B*l.F))}};k.X={1p:p(a){o b=Y(a)+"=",Q=K.L.E(b),Z=1q;r(Q>-1){o c=K.L.E(";",Q);r(c==-1){c=K.L.B}Z=31(K.L.18(Q+b.B,c))}u Z},19:p(a,b,c,d,e,f){o g=Y(a)+"="+Y(b);r(c 33 N){g+="; 34="+c.36()}r(d){g+="; 37="+d}r(e){g+="; 38="+e}r(f){g+="; 39"}K.L=g},3a:p(a,b,c,d){l.19(a,"",G N(0),b,c,d)}};k.3b={3c:p(a){o b=G 3d();r(a.E("?")>0){o c=a.18(a.E("?")+1);r(c.E("#")>0){c=c.18(0,c.E("#"))}o d=c.1a("&");P(o i=0;i<d.B;i++){b[d[i].1a("=")[0]]=d[i].1a("=")[1]}}u b}};k.3e=p(a,b,c){r(a.1r){a.1r(b,c,1s)}R r(a.1t){a.1t("T"+b,c)}R{a["T"+b]=c}};k.3f=p(a,b,c){r(a.1u){a.1u(b,c,1s)}R r(a.1v){a.1v("T"+b,c)}R{a["T"+b]=1q}};k.3g=p(x){o a=3h(x);r(3i(a)){u 0.1w}o a=I.3j(x*1x)/1x;o b=a.3k();o c=b.E(\'.\');r(c<0){c=b.B;b+=\'.\'}3l(b.B<=c+2){b+=\'0\'}u b};k.1y=p(){o n=G N();o y=n.3m()+\'\';o m=n.3n()+1;r(m<10)m="0"+m;o d=n.3o();r(d<10)d="0"+d;o H=n.3p();r(H<10)H="0"+H;o M=n.3q();r(M<10)M="0"+M;o S=n.3r();r(S<10)S="0"+S;o a="1w"+n.3s();a=a.1b(a.B-3,3);o b=I.1z(1A+I.1B()*1C);o c=I.1z(1A+I.1B()*1C);o e=y+m+d+H+M+S+a+b+c+k.1e;o f=k.1g.1o(e);f=k.1D(f);u y+m+d+H+M+S+a+f+b+c};k.1D=p(a){o b=3t(a.1b(0,8),16);o c=3u(b).1b(0,6);o d=c.B;r(d<6){c+=k.1E(\'0\',I.3v(6-d))}u c};k.1E=p(a,b){u G V(b+1).3w(a)};k.1F=p(){o t=G N();u t.3x()};k.1G=p(){k.D=k.X.1p("D");r(1c k.D==\'O\'||!/^\\d{35}$/.3y(k.D)){o a=G N(3z,1,1);k.D=k.1y();k.X.19("D",k.D,a,"/",k.1d)}k.1f=k.1F()};U=k;U.1G()})()}', 62, 222, '|||||||||||||||||||||this|||var|function||if|||return|md5_ff|md5_gg|||md5_hh|md5_ii|length|safe_add|__permanent_id|indexOf|chrsz|new||Math|md5_cmn|document|cookie||Date|undefined|for|cookieStart|else||on|ddclick_head_functions|Array|0xFFFF|CookieUtil|encodeURIComponent|cookieValue|||||||||substring|set|split|substr|typeof|__cookieDomain|__ddclick_hash_key|__timestap|Md5Util|hexcase|binl2hex|charAt|0xF|core_md5|bit_rol|str2binl|hex_md5|get|null|addEventListener|false|attachEvent|removeEventListener|detachEvent|00|100|createPermanentID|floor|100000|random|900000|formatHashCode|str_repeat|initTime|init|ddclick_page_tracker|dangdang|com|DDClick521|b64pad|0123456789ABCDEF|0123456789abcdef|0x80|64|1732584193|271733879|1732584194|271733878|680876936|389564586|606105819|1044525330|176418897|1200080426|||||1473231341|45705983|1770035416|1958414417|42063|1990404162|1804603682|40341101|1502002290|1236535329|165796510|1069501632|643717713|373897302|701558691|38016083|660478335|405537848|568446438|1019803690|187363961|1163531501|1444681467|51403784|1735328473|1926607734|378558|2022574463|1839030562|35309556|1530992060|1272893353|155497632|1094730640|681279174|358537222|722521979|76029189|640364487|421815835|530742520|995338651|198630844|1126891415|1416354905|57434055|1700485571|1894986606|1051523|2054922799|1873313359|30611744|1560198380|1309151649|145523070|1120210379|718787259|343485551|charCodeAt|decodeURIComponent||instanceof|expires||toGMTString|path|domain|secure|unset|URLUtil|getKeyValueArray|Object|addEventHandler|removeEventHandler|changeTwoDecimal|parseFloat|isNaN|round|toString|while|getFullYear|getMonth|getDate|getHours|getMinutes|getSeconds|getMilliseconds|parseInt|String|abs|join|getTime|test|2020'.split('|'), 0, {}))</script>
  
  
    
    
  <script type="text/javascript" src="./forsearch_files/jquery.js"></script>
  <script language="javascript">var minsize = 1210;
    var screensize = screen.width;
    if (screensize < minsize) {
      document.body.className = "narrow_page"
    }</script>
  <script type="text/javascript">var arrayObj = new Array();
    //    var mix_ajax_api = '/Standard/Framework/Core/hosts/ajax_api.php';
    </script>
  <style></style>
  <div id="bd" name="12812">
    <div class="con " name="12813">
      <div id="12807" class="con 12807" name="12814">
        <div id="component_940028"></div>
        <div class="find_wrap">
          <dl id="search_relate" name="related-search" class="search_find clearfix" style="">
            <dt>你是不是想找：</dt>
              @foreach($hebing as $vvv)
            <dd>
              <a href="javascript:;" title="今何在">{{$vvv}}</a></dd>
              @endforeach
          </dl>
        </div>
        <div class="spacer"></div>
        <div id="component_2120663"></div>
        <div class="search_tab_f">
          <ul class="clearfix top_nav" id="J_tab">
            <a href="javascript:;" dd_name="全部商品">
              <li class="now">全部商品</li></a>
            <li class="search_batch">
             
            </li>
          </ul>
        </div>
        <div class="spacer"></div>
        <div id="component_2723364"></div>
        <div class="spacer"></div>
        <div id="component_2723363"></div>
        <div class="spacer"></div>
        <div id="component_2723360"></div>
        <div class="crumbs_fb clearfix">
          <div class="crumbs_fb_left">
            <a href="javascript:;" name="breadcrumb-all" class="a">全部</a>
            <span class="sp">&gt;</span>
            <span class="search_word">{{$b->keykey}}</span></div>
          <span class="sp total">共
            <em class="b">{{$b->countbook}}</em>件商品</span></div>
        <div class="spacer"></div>
        <div id="component_2723361"></div>
        
        
        <div class="tools_box" id="go_sort">
          <div class="top">
            <ul class="sorting_box">
              <li class="on">
                <a href="javascript:;" class="sorting_box_a" ddclick="act=sort_default&amp;pos=0_0_0_q" title="点击后恢复综合排序" name="sort-defaut">综合排序</a></li>
              <li class="tools_to_float">
                <a href="javascript:;" class="sorting_box_a" ddclick="act=sort_sale&amp;pos=0_0_0_q" title="点击后按销量由高到低" name="sort-sale">销量
                  <span class="icon"></span></a>
              </li>
              <li class="tools_to_float">
                <a href="javascript:;" class="sorting_box_a" ddclick="act=sort_review&amp;pos=0_0_0_q" title="点击后按好评由高到低" name="sort-review">好评
                  <span class="icon "></span></a>
              </li>
              
              <li name="price-nohover" title="点击后按价格由低到高" class="tools_to_float">
                <!--升序icon_t 降序icon_b -->
                <a href="javascript:;" ddclick="act=sort_price&amp;pos=0_0_0_q" class="sorting_box_a">价格
                  <span class="icon icon_n" name="sort-price"></span></a>
              </li>
              <li class="tools_to_float">
                <div class="interval " id="prices">
                  <!--<div class="interval interval_on" id="prices">-->
                  <div class="inner">
                    <input type="text" title="最低价" class="text" value="" name="low_price" id="input_lowprice">
                    <span>-</span>
                    <input type="text" class="text" title="最高价" value="" name="high_price" id="input_highprice">
                    <div>
                      <input type="button" class=" button btn_yes" id="price_btn_yes" name="sort-manual-price-confirm" value="确定">
                      <input type="button" class="button" id="price_btn_cls" name="sort-manual-price-delete" value="清除"></div>
                    <!-- <div><a href="" class="button btn_yes btn_yes_hover">确定</a><a href="" class="button">清除</a></div>--></div>
                </div>
              </li>
              <li class="tools_to_float">
                
              </li>
            </ul>
            <div class="bottom">
            </div>
            <div class="data">

            </div>
            <div class="switch">
              
            </div>
          </div>
        </div>
        <div class="spacer"></div>
      </div>
      @foreach($list as $v)
      <div id="12808" class="con search_wrap clearfix" name="12815">
        <div id="12810" class="col search_left" name="12817">
          <div class="" name="m940032_pid0_t12839">
            <div id="component_940032"></div>
            <div class="con shoplist" name="m940032_pid0_t12840">
              <ul class="bigimg" id="component_0__0__6612">
                <li class="line2" id="p23962996">
                  <a title="{{$v->title}}" class="pic" name="itemlist-picture" href="{{url('home/detail')}}?id={{$v->id}}&status={{$v->status}}" target="_blank">
                    <img data-original="{{url('uploads/admin')}}/{{$v->pic1}}" 
                    src="{{url('uploads/admin')}}/{{$v->pic1}}" 
                    alt="{{$v->title}}" 
                    style="display: block;"></a>
                  <p class="name" name="title">
                    <a title="{{$v->title}}" href="{{url('home/detail')}}?id={{$v->id}}&status={{$v->status}}" name="itemlist-title" target="_blank">
                      <font class="skcolor_ljg">{{$v->goodName}}</font>
                      {{$v->contents}}</a></p>
                  <p class="detail">
                    {{$v->contents}}
                  </p>
                  <p class="price">
                    <span class="search_now_price">￥{{$v->youhuiPrice}}</span>
                    <a class="search_discount" style="text-decoration:none;">定价：</a>
                    <span class="search_pre_price">￥{{$v->marketPrice}}</span>
                    <span class="search_discount">&nbsp;({{$v->youhuiPrice/$v->marketPrice*10}}折)</span></p>
                  <p class="dang" style="display: block">当当自营</p>
                  <p class="search_star_line">
                    <span>
                      <span style='color:#ffcc00' id='onlyOneStar'>
                        @for($i=0;$i<($v->hplok)/100*5;$i++)
                              ★
                        @endfor
                      </span>
                    </span>
                    <a href="javascript:;" target="_blank" name="itemlist-review" class="search_comment_num">{{$v->pinglunlala}}条评论</a></p>
                  <span class="tag_box">
                    
                  </span>
                  <p class="search_book_author">
                    <span>
                      <a href="javascript:;" name="itemlist-author" title="今何在">{{$v->auth}}</a></span>
                    <span>/{{$v->chubantime}}</span>
                    <span>/
                      <a href="javascript:;" name="P_cbs" title="北京联合出版公司">{{$v->chubanshe}}</a></span>
                  </p>
                  <p class="bottom_p">
                    <a class="search_btn_cart" name="Buy" dd_name="加入购物车" href="javascript:;" ddclick="act=normalResult_addToCart&amp;pos=23962996_1_1_q">加入购物车</a>
                    <a class="search_btn_collect" name="collect" dd_name="加入收藏" id="lcase23962996" href="javascript:;" ddclick="act=normalResult_favor&amp;pos=23962996_1_1_q">收藏</a></p>
                </li>
              </ul>
            </div>
          </div>
        </div>
      </div>
      @endforeach
      <div class="search_search_box_wrap">
        <div class="search_search_box" name="R2">
          <input type="hidden" name="keypos" value="0">
          <input type="hidden" name="keycodes" value="">
          <input type="hidden" name="keypos_old" value="0">
          <input type="text" class="search_input_box" value="{{$b->keykey}}" id="relate_search">
          <input type="button" class="search_button_box" value="" onclick="adv_vsearch();return false;" name="search-button" style="cursor: pointer;"></div>
        <div class="suggest_key" style="display:none;" id="search_suggest_list"></div>
      </div>
      <div class="spacer"></div>
      <div id="component_940673"></div>
      
      <div class="spacer"></div>
      <div id="component_2946402"></div>
      <div class="search_top" style="display: none;" id="float-search-tool">
        <div class="logo_line" dd_name="悬浮搜索框">
          <div class="tools_box">
            <div class="top">
              <div class="t1">
                <ul class="sorting_box"></ul>
              </div>
              <div class="t2">
                <div dd_name="悬浮logo" style="display:none;" id="float_logo" class="logo">
                  <a href="" target="_blank"></a>
                </div>
              </div>
              <div class="t3">
                <div class="bottom">
                  <ul class="opt opt_s"></ul>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="spacer"></div>
      <div id="component_2946401"></div>
      <div class="spacer"></div>
      <div class="" name="m2946399_pid0_t4357">
        <div id="component_2946399"></div>
        <div class="con " name="m2946399_pid0_t4358">
          <div class="fix_back">
            <!-- <iframe src="" frameborder="0" class="fix_box_iframe"></iframe>-->
            <div class="fix_erweima" id="fix_erweima">
              <iframe src="" frameborder="0" style="display: none;"></iframe>
              <a href="javascript:void(0);" class="little" style="cursor: default; text-decoration: none;"></a>
              <a href="javascript:void(0);" class="big" 
              style="display: none; cursor: default; text-decoration: none;"></a>
            </div>
            <a href="javascript:void(0);" class="fix_box_survey" title="意见反馈" target="_blank">
              意见反馈
            </a>
            <a href="javascript:void(0);" class="fix_box_back_up" id="back_top" dd_name="返回顶部" 
            style="display: none;">返回顶部</a></div>
        </div>
      </div>
      <div class="spacer"></div>
      <div id="component_2946400"></div>
      <div class="spacer"></div>
    </div>
  </div>

  <style></style>
  <!--<script type="text/javascript" src="js/mix.js"></script>-->
  <!--<script type="text/javascript" src="js/jquery/jquery.jtab.js"></script>-->
  <!--<script type="text/javascript" src="js/jquery/jquery.livequery.min.js"></script>-->
  <script>(function($) {
      var act = "input";
      var key = "%CE%F2%BF%D5%B4%AB";
      var param = {
        act: act,
        keywords: key,
        type: "relatedSearch"
      };
      var relateObj = $("#search_relate");
      $.get("api/get_json.php", param,
      function(data) {
        if (data.st == 1) {
          if (data.total_count > 0) {
            relateObj.append("<dt>你是不是想找：</dt>");
            $.each(data.items,
            function(i, item) {
              relateObj.append("<dd><a href='" + item.url + "'title='" + item.key + "'>" + item.key + "</a></dd>");
            });
            relateObj.children('dd').last().addClass("search_find_last");
            if ('#J_tab' !== window.location.hash) {
              relateObj.show();
            }
          }
        } else {

          relateObj.append("<dd'></dd>");
          if ('#J_tab' !== window.location.hash) {
            relateObj.show();
          }
          relateObj.removeClass("search_find");
          relateObj.removeClass("clearfix");
        }
      },
      'json');
      var path_name = "newsearch_book_page";
    })(jQuery);</script>
  <script>$(function() {
      $(".search_tab_f li").hover(function() {
        $(this).addClass("hover");
        $('.search_tab_f .search_batch').removeClass("hover");
        $('.search_tab_f .search_batch').css("cursor", "default");

      },
      function() {
        $(this).removeClass("hover");
      });

      $(".batch_inter .question_icon").hover(function() {
        $(".batch_inter .produce").css("display", "block");
      },
      function() {
        $(".batch_inter .produce").css("display", "none");
      });
    });</script>
  <script>(function($) {
      $(".crumbs_fb_left").children(".user_selected").hover(function() {
        $(this).addClass("user_selected_hover");
      },
      function() {
        $(this).removeClass("user_selected_hover");
      });
    })(jQuery); (function() {
      var label_key = document.getElementById('label_key');
      if (label_key) {
        label_key.innerHTML = '';
        label_key.style.visibility = 'hidden';
      }
      var inpute = document.getElementById('key_S');
      try {
        inpute.value = ' {{$b->keykey}} '.replace(/^\s+|\s+$/g, '');
      } catch(e) {}

      inpute.className = inpute.className.replace('gray', '');
    })();</script>
  <script>var f_brand = {
      brands: {}
    };</script>
  <script src="./forsearch_files/nsearchfilter.js"></script>
  <script>$('.filtrate_box .cloth_slide_btn').css({
      "margin-left": "-" + ($('.filtrate_box .cloth_slide_btn').width()) / 2 + "px"
    });
    if (document.all) {
      window.attachEvent('onload',
      function() {
        var page_tracker = new PageTracker();
        bindDDclick();
        page_tracker.trackPingPHP('http://search.dangdang.com/ping.php?' + 'act=view&pos=0_0_0_q&cat=&key=%CE%F2%BF%D5%B4%AB&qinfo=49_1_60&pinfo=&minfo=&ninfo=&custid=&permid=20160828173623844688869665327328653&ref=http%3A%2F%2Fbook.dangdang.com%2F&rcount=&type=&t=1473006775000&sell_run=1&searchapi_version=instock_unchecked&mix_reco=original_query:%CE%F2%BF%D5%B4%AB||original_result_num:53');
      });
    } else {
      window.addEventListener('load',
      function() {
        var page_tracker = new PageTracker();
        bindDDclick();
        page_tracker.trackPingPHP('http://search.dangdang.com/ping.php?' + 'act=view&pos=0_0_0_q&cat=&key=%CE%F2%BF%D5%B4%AB&qinfo=49_1_60&pinfo=&minfo=&ninfo=&custid=&permid=20160828173623844688869665327328653&ref=http%3A%2F%2Fbook.dangdang.com%2F&rcount=&type=&t=1473006775000&sell_run=1&searchapi_version=instock_unchecked&mix_reco=original_query:%CE%F2%BF%D5%B4%AB||original_result_num:53');
      },
      false);
    }
    function bindDDclick() {
      var all_ele = document.getElementsByTagName('*'),
      page_tracker = new PageTracker(),
      len = 0,
      i = 0,
      all_ele_list,
      j = 0;
      all_ele_list = all_ele;
      for (i = 0, len = all_ele_list.length; i < len; i++) {
        if (all_ele_list[i].getAttribute('ddclick') !== null) {
          if (document.all) {
            all_ele_list[i].attachEvent('onclick', (function(ddclickUrl) {
              return function() {
                page_tracker.trackPingPHP('http://search.dangdang.com/ping.php?' + ddclickUrl + '&cat=&key=%CE%F2%BF%D5%B4%AB&qinfo=49_1_60&pinfo=&minfo=&ninfo=&custid=&permid=20160828173623844688869665327328653&ref=http%3A%2F%2Fbook.dangdang.com%2F&rcount=&type=&t=1473006775000&sell_run=1&searchapi_version=instock_unchecked&mix_reco=original_query:%CE%F2%BF%D5%B4%AB||original_result_num:53');
              }
            })(all_ele_list[i].getAttribute('ddclick')));
          } else {
            all_ele_list[i].addEventListener('click', (function(ddclickUrl) {
              return function() {
                page_tracker.trackPingPHP('http://search.dangdang.com/ping.php?' + ddclickUrl + '&cat=&key=%CE%F2%BF%D5%B4%AB&qinfo=49_1_60&pinfo=&minfo=&ninfo=&custid=&permid=20160828173623844688869665327328653&ref=http%3A%2F%2Fbook.dangdang.com%2F&rcount=&type=&t=1473006775000&sell_run=1&searchapi_version=instock_unchecked&mix_reco=original_query:%CE%F2%BF%D5%B4%AB||original_result_num:53');
              }
            })(all_ele_list[i].getAttribute('ddclick')), false);
          }
        }
      }
    }</script>
  <script type="text/javascript">$(function() {
      $('.select_box').hover(function() {
        $(this).find('.select_pop').show();
      },
      function() {
        $(this).find('.select_pop').hide();
      });
      $("#prices>.inner>div>.btn_yes").click(function() {
        var low_price = '';
        var hight_price = '';
        var low_price_temp = $("#prices>.inner>.text:first").val();
        var hight_price_temp = $("#prices>.inner>.text:last").val();
        if (low_price_temp != '') {
          low_price_temp = parseFloat(low_price_temp);
        }
        if (hight_price_temp != '') {
          hight_price_temp = parseFloat(hight_price_temp);
        }
        if (low_price_temp != '' && hight_price_temp != '') {
          var low_price = low_price_temp > hight_price_temp ? hight_price_temp: low_price_temp;
          var hight_price = low_price_temp < hight_price_temp ? hight_price_temp: low_price_temp;
        } else {
          var low_price = low_price_temp;
          var hight_price = hight_price_temp;
        }
        var link = $('#prices>.inner>div>.btn_yes').attr("link");
        var link_temp = link.replace('filterPriceLowp', low_price);
        var link = link_temp.replace('filterPricehighp', hight_price);

        window.location.href = link;
      });
      $("#prices").find('[type=text]').focusin(function() {
        $("#prices").addClass('interval_on');
        $("#prices").find('[type=text]').addClass('text_hover');
      });
      $("#prices").find('[type=text]').focusout(function() {
        $("#prices").find('[type=text]').removeClass('text_hover');
        $("#prices").removeClass('interval_on');
      });
      $('.button').hover(function() {
        $("#prices").find('[type=text]').unbind();
        $("#prices").find('[type=text]').keyup(filterPrice);
      },
      function() {
        $("#prices").find('[type=text]').bind({
          focusin: function() {
            $("#prices").addClass('interval_on');
            $("#prices").find('[type=text]').addClass('text_hover');
          },
          focusout: function() {
            $("#prices").find('[type=text]').removeClass('text_hover');
            $("#prices").removeClass('interval_on');
          }
        });
      });
      $("#prices").find('[type=text]').keyup(filterPrice);
      $('.btn_yes').hover(function() {
        $(this).addClass('btn_yes_hover');
      },
      function() {
        $(this).removeClass('btn_yes_hover');
      });
      $("#price_btn_cls").click(function() {
        $("#prices").find('[type=text]').val('');
        $("#input_lowprice").focus();
      });
      $('.sorting_box>li:lt(5)').hover(function() {
        $(this).addClass('hover');
      },
      function() {
        $(this).removeClass('hover');
      });
      function filterPrice() {
        var price = $(this).val();
        var re = /^[^0-9]/i;
        if (re.test(price)) {
          $(this).val('');
          return;
        }

        price = $(this).val();
        if (price.length > 15) {
          var new_value = price.substr(0, 15);
          $(this).attr('value', new_value);
          //       return;
        };

        re = /[^\d|\.]/i;
        price = $(this).val();
        if (re.test(price)) {
          var new_value = price.substr(0, price.search(re));
          $(this).attr('value', new_value);
          //return;
        }

        re = /\.[0-9]{3}/i;
        price = $(this).val();
        if (re.test(price)) {
          var new_value = price.substr(0, price.indexOf('.') + 3);
          $(this).attr('value', new_value);
          return;
        }

        re = /\.[0-9]*\.+/i;
        price = $(this).val();
        if (re.test(price)) {
          var new_value = price.substr(0, price.indexOf('.') + 1);
          if (!isNaN(price.substr(price.indexOf('.') + 1, 1))) {
            new_value = price.substr(0, price.indexOf('.') + 2);
            if (!isNaN(price.substr(price.indexOf('.') + 2, 1))) {
              new_value = price.substr(0, price.indexOf('.') + 3);
            }
          }
          $(this).attr('value', new_value);
          return;
        }
        return;
      }
    });</script>
  <script>function initShouhuodi() {
      $('#curent_area').text('北京');
      var dest_area = 'country_id%3D9000%26province_id%3D111%26city_id%3D0%26district_id%3D0%26town_id%3D0';
      var exp = new Date();
      exp.setTime(exp.getTime() + 3 * 60 * 60 * 1000);
      document.cookie = 'dest_area' + "=" + dest_area + ";expires=" + exp.toGMTString() + ";domain=dangdang.com";
    }
    $(function() {
      initShouhuodi();
      $('.ddnewhead_area_list li a').click(function() {
        var num = $(this).attr('num');
        if (num == 174) {
          window.location.reload(true);
        } else {
          var cururl = window.location.href;
          var newurl = cururl.replace(/(.*&city=)(\d*)/, "$1" + num);
          var newurl = newurl.replace(/#J_tab/, '');
          window.location.href = newurl;
        }
      });
      $('.cloth_shoplist li').not('.search_hot_popular').hover(function() {
        $(this).addClass('on');
      },
      function() {
        $(this).removeClass('on');
      }) $('.narrow_page .tools_box .bottom .opt').addClass('opt_s');
      $(".narrow_page .tools_box .bottom").hover(function() {
        $(this).addClass("bottom_inner");
      },
      function() {
        $(this).removeClass("bottom_inner");
      });
      if ($('.tools_box .bottom .opt li').length > 4) {
        $('.tools_box .bottom .opt').addClass('opt_s');
        $(".tools_box .bottom").hover(function() {
          $('.tools_box .bottom .opt').removeClass('opt_s');
          $(this).addClass("bottom_inner");
        },
        function() {
          $(this).removeClass("bottom_inner");
          $('.tools_box .bottom .opt').addClass('opt_s');
        });
      }
    });</script>
  <script>$(function() {
      $('.ebook_code').hover(function() {
        $(this).children('span').addClass('code_down');
        $(this).find('.code_img').show();

      },
      function() {
        $(this).children('span').removeClass('code_down');
        $(this).find('.code_img').hide();

      })
    })

    $(document).ready(function() {
      var show_type = "list";
      if (show_type == 'list') {
        $('.paginating').css('margin-top', '40px')
      }
      var pids = '21096162%2C23962996%2C23974508%2C1960091645%2C1960091100%2C1236787405%2C1134696694%2C1191532271%2C1213420083%2C1188193481%2C1444296946%2C1045819381%2C1368616682%2C1337978643%2C1123659281%2C1239565182%2C1040355281%2C1192836784%2C1154359481%2C1153797856%2C1123631265%2C1112852981%2C1096585856%2C1083040956%2C1083040656%2C1063081856%2C1016779365%2C9186936%2C22775344%2C1278761633%2C22465810%2C1134799794%2C1042854181%2C9147345%2C22771677%2C23671241%2C1253405071%2C1035108181%2C1249075281%2C1172499092%2C1442457471%2C1243733454%2C1124725181%2C1100966081%2C1056084881%2C23237485%2C20911655%2C1005526481';
      var param = {
        pids: pids,
        type: 'get_price',
        time: 1473006775
      };
      $.post("api/get_price.php", param,
      function(data) {
        if (typeof(data.st) == 'undefined') {
          if (data.total_count > 0) {
            $.each(data.items,
            function(i, item) {
              if (item.is_found) {
                if (item.sale_price >= 100000) {
                  var price = item.sale_price / 100;
                  var original_price = item.original_price / 100;
                } else {
                  var price = (item.sale_price / 100).toFixed(2);
                  var original_price = (item.original_price / 100).toFixed(2);
                }
                if (item.original_price != 0) {
                  var discount = Math.ceil(item.sale_price * 1000 / item.original_price) / 100;
                } else {
                  var discount = 0;
                }
                if ($("#p" + i).hasClass("orig_ebook_paytype")) {
                  $("#p" + i).find('.price').children('span').eq(0).html('&yen;' + price);
                }
                $("#p" + i).find('.price').children('span').eq(1).html('&yen;' + original_price);
                $("#p" + i).find('.price').children('span').eq(2).html('&nbsp;(' + discount + '折)');
              }
            });
          }
        }
      },
      'json');
    }); (function($) {
      $.category = $.category || {};
      $.htmldata = $.htmldata || [];
      $.extend($.category, {
        main: function() {
          $.htmldata = $.category.init($("div.pic_list"));
          if (!$.htmldata) return false;
          $.category.initEvent($.htmldata);
        },
        init: function(obj) {
          var data;
          if (obj.length > 0) {
            data = obj;
          } else {
            data = null;
          }
          return data;
        },
        initEvent: function(html) {
          html.each(function(index, ele) {
            var that = $(ele);
            var totalpage = that.find("dd");
            var dd = that.find('img');

            if (dd.length > 5) {
              var pages = Math.ceil(dd.length / 5);
              var prev = that.find("a.btn_l");
              var next = that.find("a.btn_r");
              var pagenum = 1;
              prev.addClass('unable_l');
              $(prev).bind('click',
              function() {
                if (next.hasClass('unable_r')) {
                  next.removeClass('unable_r');
                }
                if (--pagenum < 1) {
                  //左翻页置灰
                  pagenum = 1;
                  return false;
                }
                if (pagenum <= 1) {
                  if (!prev.hasClass('unable_l')) {
                    prev.addClass('unable_l');
                  }
                }
                $.category.showpage(that, totalpage, pagenum);
              });
              $(next).bind('click',
              function() {
                if (prev.hasClass('unable_l')) {
                  prev.removeClass('unable_l');
                }
                if (++pagenum > pages) {
                  //右翻页置灰
                  pagenum = pages;
                  return false;
                }
                if (pagenum >= pages) {
                  if (!next.hasClass('unable_r')) {
                    next.addClass('unable_r');
                  }
                }
                $.category.showpage(that, totalpage, pagenum);
              });
            } else {
              that.find("a.btn_l").hide();
              that.find("a.btn_r").hide();
            }
            $.category.bigimg(dd, that, dd);
          });
        },
        bigimg: function(dd, pp, allimg) {
          $(dd).each(function() {
            var flag = $(this).attr('data-flag');
            if (flag == 0) { //flag在这里是string "0"代表商品有小图 or string "1"代表商品无小图只有对应色块
              $(this).bind('click',
              function() {
                //小图高亮显示
                $(allimg).each(function(index, ele) {
                  if ($(ele.parentNode).hasClass('on')) {
                    $(ele.parentNode).removeClass('on');
                  }
                });

                $(this.parentNode).addClass('on');
                var b = pp.parent().find("a.pic");
                //这里span的作用主要是加载图片慢时提示loading图片
                var s = document.createElement("span");
                $(s).addClass('pic');
                b.empty().append(s);

                var img = new Image();
                $(img).bind('load',
                function() {
                  b.empty().append(img);
                });
                img.src = this.src.replace(/_x/, "_b"); //src赋值处理放在这个位置，可以解决ie8 7 6下的bug 加载缓冲区太快 onload事件没来及处理
                $(img).attr({
                  'height': 200,
                  'width': 200
                });
              });
            }
          });
        },
        showpage: function(parent, total, page) {
          var dl = parent.find("dl").empty();
          var curnum = parseInt((page - 1) * 5);
          var jumnum = curnum + 5;
          var cur = total.slice(curnum, jumnum);
          var dd = cur.find("img");
          var allimg = total.find("img");
          this.bigimg(dd, parent, allimg);
          dl.append(cur);
        }
      });

      $.category.main();

    })(jQuery);

    $(".cloth_bigimg>li").hover(function() {
      $(this).find("div>.star").css("display", "block");
      $(this).find("div>.link").css("display", "block");
      $(this).addClass("hover");
    },
    function() {
      $(this).find("div>.link").css("display", "none");
      $(this).removeClass("hover");
    });
    $('.bigimg').not('.cloth_shoplist').children('li').hover(function() {
      $(this).addClass('hover');
    },
    function() {
      $(this).removeClass('hover');
    });</script>
  <script type="text/javascript" src="./forsearch_files/lazyload181.js"></script>
  <script type="text/javascript">$("img[data-original]").lazyload();</script>
  <script type="text/javascript">$(function() {
      $('.paginating').remove();
    });</script>
  <script type="text/javascript">$(function() {
      $('#t__cp').keydown(function(e) {
        if (e.keyCode == 13) {
          verifyListPages();
        }
      });
      $('#click_get_page').click(function() {
        verifyListPages();
      });
    });

    function verifyListPages() {
      var page = $.trim($('#t__cp').val());
      var max_page = 1;
      re = /^[1-9]*[0-9]*[0-9]$/i;
      if (!re.test(page) || page == 0) {
        alert('您好，请输入正确页码。');
        return false;
      } else {
        if (parseInt(page) > 100) {
          alert('您好，请输入正确页码。');
          return false;
        } else {
          if (parseInt(page) > max_page) {

            alert('您好，请输入正确页码。');
            return false;
            //                    var href_url = '/?key=%CE%F2%BF%D5%B4%AB&act=input&page_index=none';
            //                                            //                        end_url = href_url.replace('page_index=none','page_index=none');
            //                                        //                    
            //                    window.location.href=end_url;
            //                    return false;
          } else {
            var href_url = '/?key=%CE%F2%BF%D5%B4%AB&act=input&page_index=none';
            end_url = href_url.replace('page_index=none', 'page_index=' + page);

            window.location.href = end_url;
          }
        }
      }
    }</script>
  <script type="text/javascript">$(document).ready(function() {
      $(".question ul li a").click(function() {
        if ($(this).attr('class') == "choose choosen") {
          $(this).removeClass('choosen');
          $(".question ul li").css('display', 'block');
          $('.question .suggest').css('display', 'none');
          $('.question .submit').css('display', 'none');
        } else {
          $(this).addClass('choosen');
          $(".question ul li").css('display', 'none');
          $(this).parent().css('display', 'block');
          $('.question .suggest').css('display', 'block');
          $('.question .submit').css('display', 'block');
        }
      });
      //提交
      $(".question .submit .btn").click(function() {
        var customerId = "216098851";
        var permId = "20160828173623844688869665327328653";
        var current_url = document.location.toString(); //当前页面全url
        var content = $.trim($(".question .suggest input").val()); //调查问卷提交意见
        var survey_option = 0;
        $(".question ul li a").each(function(index, value) {
          if ($(this).attr('class') == "choose choosen") {
            survey_option = index;
          }
        });
        //
        $.post("api/questionnaire.php", {
          "table": "search_survey",
          "cust_id": customerId,
          "perm_id": permId,
          "search_url": current_url,
          "survey_option": survey_option,
          "description": content,
          "op_type": "insert"
        },
        function(result) {
          if ($.trim(result) == "INSERT OK") {
            $(".question .issue").css("display", "none");
            $(".question ul").css("display", "none");
            $('.question .suggest').css('display', 'none');
            $('.question .submit').css('display', 'none');
            $(".question .thx").css("display", "block");
            $(".question .pic").css("display", "block");
          }
        });
      });
    });</script>
  <script type="text/javascript">$(function() {
      try {
        var newextra = "%CE%F2%BF%D5%B4%AB";
        var minheight = 960;
        var height = screen.height;
        var adnumber = 'search__float_new_3';
        if (height < minheight) {
          adnumber = 'search__float_new_2';
        }
        var pic_size = 'b';
        var newbandnames = "";
        DD_AD.cpc_pos_style[9] = {};
        DD_AD.cpc_pos_style[9].DISCOUNT_STYE = 2;
        DD_AD.cpc_pos_style[9].TITLE_ONE_LINE = true;
        DD_AD.fetchCPC(9, 0, newextra, 1, 'new', 'float', newbandnames, adnumber, pic_size);
        $('#cpc_float').delegate('li', 'hover',
        function(event) {
          if (event.type == 'mouseenter') {
            $(this).addClass('on');
          } else {
            $(this).removeClass('on');
          }
        });
      } catch(e) {}
      var adfloat = function() {
        var topmax = 0;
        $(window).scroll(function(e) {
          var scrollTop = $(window).scrollTop();
          var top = $("#cpc_float_partner").offset().top;
          var cpc_float_height = $("#cpc_float").height();
          var right_height = $("div.good_right").height();
          var left_height = $("div.search_left").height();
          if ($("div.hot_sale").length > 0) {
            var bottom_height = $("div.hot_sale").offset().top;
            var p = 113;
          } else {
            var bottom_height = $("div.search_search_box_wrap").offset().top;
            var p = 117;
          }
          if (isIE(8) || isIE(9)) { //IE 8,9 bug
            p = p + 12;
          }
          topmax = scrollTop;
          if (top > scrollTop) {
            topmax = top > topmax ? top: topmax;
          }
          if (topmax == 0 || right_height > left_height) {

} else {
            if (isIE() && cpc_float_height < 1) { //IE bug 
              if (height < minheight) {
                cpc_float_height = 582;
              } else {
                cpc_float_height = 855;
              }
            }
            if (scrollTop + cpc_float_height > bottom_height) {
              $("#cpc_float").css({
                "position": "absolute",
                "top": bottom_height - cpc_float_height - p + 'px',
                "margin-top": "0px"

              });
            } else {
              if (top > scrollTop) {
                $("#cpc_float").css({
                  "position": "",
                  "top": '',
                  "margin-top": "20px"
                });
              } else {
                if (!window.XMLHttpRequest) {
                  $("#cpc_float").css({
                    "position": "absolute",
                    "top": scrollTop + 'px',
                    "margin-top": "0px"
                  });
                } else {
                  $("#cpc_float").css({
                    "position": "fixed",
                    "top": "0px",
                    "margin-top": "0px"
                  });
                }
              }
            }

          }
        });
      }
      var isIE = function(ver) {
        var b = document.createElement('b');
        b.innerHTML = '<!--[if IE ' + ver + ']><i></i><![endif]-->';
        return b.getElementsByTagName('i').length === 1;
      }
      adfloat();
      if (navigator.userAgent.indexOf("Firefox") > 0 || isIE(6)) {
        scrollBy(0, 1);
      }
    });</script>
  <script>$(function() {
      try {
        var minsize = 1210;
        var screensize = screen.width;
        var newbandnames = "";
        var style = 'ssnew';
        var pic0_size = 'b';
        var pic1_size = 'b';
        var lenwid = 'sw';
        if (screensize < minsize) {
          lenwid = 'sn';
        }
        var position = 0;
        extra = "%CE%F2%BF%D5%B4%AB";
        var page = 0;
        if (typeof(DD_AD) != "undefined") {
          DD_AD.cpc_pos_style[0] = {};
          DD_AD.cpc_pos_style[0].GOLD_FLAG = true;
          DD_AD.cpc_pos_style[0].GOLD_SIZE = 4;
          $("#cpc_tab").show();
          DD_AD.fetchCPC(position, page, extra, 1, 'new', lenwid, newbandnames, style, pic0_size, pic1_size);
        }
        $('#cpc_1').delegate('li', 'hover',
        function(event) {
          if (event.type == 'mouseenter') {
            $(this).addClass('on');
          } else {
            $(this).removeClass('on');
          }
        });
        $('#cpc_0').delegate('li', 'hover',
        function(event) {
          if (event.type == 'mouseenter') {
            $(this).addClass('on');
          } else {
            $(this).removeClass('on');
          }
        });

      } catch(e) {

}
    });</script>
  <script type="text/javascript">/*高级搜索*/
    function adv_vsearch() {
      var key = $.trim($("#relate_search").val());
      if (cnlength(key) > 70) {
        alert(cnlength(key) + "搜索词过长，请重新填写！"); //搜索词太长，请重新输入！
      } else {
        window.location.href = "{{url('home/search')}}?key=" + key.replace(/&/g, '%26');
      }
    }
    function cnlength(str) {
      return str.replace(/[^x00-xff]/gi, 'oo').length;
    }
    function Search_FillSuggest(jsondata) {
      var searchval = $("#relate_search").val();
      if (jsondata == "") return false;
      if (jsondata[2] && jsondata[2].length > 0 && searchval != "") {
        childdata = jsondata[2];
        childs = jsondata[2].length;
        list_html = "<ul>";
        for (var k = 0; k < childs; k++) {
          for (showtext in childdata[k]) {
            var text_tmp = "<span class='d'>" + searchval + "</span>";
            var showtexts = showtext.replace(searchval, text_tmp);
            list_html += '<li id="search_' + k + '" class="" title="' + showtext + '" onclick="searchbut_click(\'' + showtext + '\')" onmouseover="searchbut_mouseover(this)" onmouseout="searchbut_mouseout(this)">' + showtexts + '</li>';
          }
        }
        list_html += "</ul>";
        $("#search_suggest_list").html(list_html);
        $("#search_suggest_list").removeAttr("style");
      } else {
        $("#search_suggest_list").hide();
        $("#search_suggest_list").html("");
      }
    }</script>
  <script>$(function() {
    
    });</script>
  <script>(function() {
      var t = 0,
      s = 0;
      window.onscroll = function() {
        var d = document,
        s = Math.max(d.documentElement.scrollTop, document.body.scrollTop);

        if ($("#go_sort").length != 0) {
          var tools_top = $("#go_sort").offset().top;
        } else {
          var tools_top = "160";
        }
        if ('#J_tab' == window.location.hash && t > s) {
          if (s < $("#J_tab").offset().top - 30) {
            $("#search_relate").show();
          } else {
            $("#search_relate").hide();
          }
        }
        if (s > tools_top && t > s) {
          toggle_float_search();
        } else {
          toggle_default_search();
        }
        setTimeout(function() {
          t = s;
        },
        0);
      };
      //切换到默认搜索 ( default )
      function toggle_default_search() {
        var f1_obj = $(".logo_line").eq(0);
        var f2_obj = $(".logo_line").eq(1);
        var f3_obj = $(".tools_box .sorting_box").eq(0);
        var f4_obj = $(".tools_box .sorting_box").eq(1);
        var f5_obj = $(".tools_box .top").eq(0).children(".t2");
        var f6_obj = $(".tools_box .top").eq(1).children(".t2");
        var f7_obj = $(".tools_box .bottom .opt").eq(0);
        var f8_obj = $(".tools_box .bottom .opt").eq(1);
        var suggest_key = f6_obj.children(".suggest_key");
        var search_id = f6_obj.children(".search");
        if ($("#go_sort").length == 0) {
          $("#float_logo").show();
          $(".search_top").addClass("no_tools");
          var suggest_key = f5_obj.children(".suggest_key");
          var search_id = f5_obj.children(".search");
        }
        var search_id_html = search_id.html();
        if (search_id_html != null) {
          f2_obj.parent().hide();
          if ($("#go_sort").length != 0) {
            f3_obj.append(f4_obj.children("li.tools_to_float"));
            f3_obj.children("li").eq(3).after(f3_obj.children("li").eq(1));
            f7_obj.prepend(f8_obj.children("li.tools_to_float"));
          }
          f1_obj.append(search_id);
          f1_obj.append(suggest_key);
        }
      }
      //切换到悬浮搜索 ( float )
      function toggle_float_search() {
        var f1_obj = $(".logo_line").eq(0);
        var f2_obj = $(".logo_line").eq(1);
        var f3_obj = $(".tools_box .sorting_box").eq(0);
        var f4_obj = $(".tools_box .sorting_box").eq(1);
        var f5_obj = $(".tools_box .top").eq(0);
        var f6_obj = $(".tools_box .top").eq(1);
        var f7_obj = $(".tools_box .bottom .opt").eq(0);
        var f8_obj = $(".tools_box .bottom .opt").eq(1);
        var suggest_key = f1_obj.children(".suggest_key");
        var search_id = f1_obj.children(".search");
        var search_id_html = search_id.html();
        if (search_id_html != null) {
          f2_obj.parent().show();
          if ($("#go_sort").length != 0) {
            f4_obj.append(f3_obj.children("li.tools_to_float"));
          }
          if ($("#go_sort").length == 0) {
            $("#float_logo").show();
            $(".search_top").addClass("no_tools");
            f5_obj.children(".t2").append(search_id);
            f5_obj.children(".t2").append(suggest_key);
          }
          if ($("#go_sort").length != 0) {
            f6_obj.children(".t2").append(search_id);
            f6_obj.children(".t2").append(suggest_key);
            f8_obj.append(f7_obj.children("li.tools_to_float"));
          }
        }
      }
    })();</script>
  <script>$(function() {
      $('.fix_erweima').hover(function() {
        $(this).find('.big').show();
      },
      function() {
        $(this).find('.big').hide();
      }) if ($(window).scrollTop() == 0) {
        $("#back_top").hide();
      }
      $(window).scroll(function() {
        var ViewHeight = $(window).height();
        if ($(window).scrollTop() >= (ViewHeight - 10)) {
          $("#back_top").show();
        } else {
          $("#back_top").hide();
        }
      });
      $("#back_top").click(function() {
        $('body,html').animate({
          scrollTop: 0
        },
        50);
        return false;
      });
    });</script>
  <script type="text/javascript" src="./forsearch_files/ld.js" async="true"></script>
  <script type="text/javascript">window.criteo_q = window.criteo_q || [];
    window.criteo_q.push({
      event: "setAccount",
      account: "25268"
    },
    {
      event: "setHashedEmail",
      email: ["3ba95df50e7226937c92fbdc6d767f39"]
    },
    {
      event: "setSiteType",
      type: "d"
    },
    {
      event: "viewList",
      item: ["21096162", "23962996", "23974508"]
    });</script>
  <script type="text/javascript">// 20150427 syq 晶赞            
    var __zp_tags_params = {
      productId_list: ["21096162", "23962996", "23974508", "1960091645", "1960091100", "1236787405", "1134696694", "1191532271", "1213420083", "1188193481"],
      keyword: ' {{$b->keykey}} '.replace(/^\s+|\s+$/g, '')
    };</script>
  <script charset="gb2312" type="text/javascript">var width = 1;
    narrow = 0;</script>
  <script src="./forsearch_files/pagetop2015_0827.js" charset="gb2312" type="text/javascript"></script>
  <script src="./forsearch_files/dd.menu-aim.js" charset="gb2312" type="text/javascript"></script>
  <script type="text/javascript">var newsuggesturl = "http://schprompt.dangdang.com/suggest_new.php?";
    var nick_num = 1;
    initHeaderOperate();
    Suggest_Initialize("key_S");
    if (!window.onload) {
      window.onload = function() {
        if (sug_gid("label_key").style.visibility == "visible") sug_gid(search_input_id).value = "";
      }
    } else {
      var funcload = window.onload;
      window.onload = function() {
        funcload();
        if (sug_gid("label_key").style.visibility == "visible") sug_gid(search_input_id).value = "";
      }
    }
    ddmenuaim(document.getElementById("menulist_content"), {
      activate: activateSubmenu,
      deactivate: deactivateSubmenu
    });</script>
  <script type="text/javascript" src="./forsearch_files/queryunpaid"></script>
  <script type="text/javascript">$(document).click(function(event) {
      var tagname = event.srcElement ? event.srcElement: event.target;
      if ($("#search_suggest_list").html().length > 0 && tagname != "javascript:void(0);") {
        $("#search_suggest_list").hide();
        $("#search_suggest_list").html("");
        $("input[name='keypos_old']").val(0);
        $("input[name='keypos']").val(0);
      }
    });
    function searchbut_mouseover(obj) {
      var old_val = $("input[name='keypos_old']").val();
      $("#search_" + old_val).removeClass("select_key");
      $("input[name='keypos_old']").val(0);
      $("input[name='keypos']").val(0);
      $(obj).addClass("select_key");
    }
    function searchbut_mouseout(obj) {
      var old_val = $("input[name='keypos_old']").val();
      $("#search_" + old_val).removeClass("select_key");
      $("input[name='keypos_old']").val(0);
      $("input[name='keypos']").val(0);
      $(obj).removeClass("select_key");
    }
    function searchbut_click(val) {
      $("#relate_search").val(val);
      adv_vsearch();
    }
    function search_trim(str) {
      return str.replace(/(s*$)|(^s*)/g, '');
    }
    function Search_InvokeServer() {
      var inputval = $("#relate_search").val();
      var newsuggesturl = "http://schprompt.dangdang.com/suggest_search.php?";
      var url = newsuggesturl + "keyword=" + search_trim(inputval) + "&catalog=&guanid=" + "&" + Math.random();
      var scriptOld = document.getElementById('search_temp_script');
      if (scriptOld != null && document.all) {
        scriptOld.src = url;
        return;
      }
      var head = document.documentElement.firstChild,
      script = document.createElement('script');
      script.id = 'search_temp_script';
      script.type = 'text/javascript';
      script.src = url;
      if (scriptOld != null) head.replaceChild(script, scriptOld);
      else head.appendChild(script);
    }
    $(function() {
      $("#relate_search").keyup(function(event) {
        var keycodes = event.keyCode;
        if (keycodes == 37 || keycodes == 39) {
          if ($("#search_suggest_list").css("display") == "none") return;
        }
        if (keycodes != 40 && keycodes != 38) {
          if (keycodes == 13) {
            adv_vsearch();
            return false;
          } else {
            var inputval = $("#relate_search").val();
            if (inputval == "") {
              $("#search_suggest_list").hide();
              $("#search_suggest_list").html("");
              return false;
            }
            window.setTimeout(Search_InvokeServer, 0);
            $("input[name='keypos_old']").val(0);
            $("input[name='keypos']").val(0);
          }
        } else {
          if ($("#search_suggest_list").css("display") == "none") return;
          var keypos = parseInt($("input[name='keypos']").val());
          var keypos_old = parseInt($("input[name='keypos_old']").val());
          var lisize = $("div#search_suggest_list > ul > li").size(); //li锟斤拷锟杰革拷锟斤拷
          var inputkeycodes = $("input[name='keycodes']").val();
          if (keycodes == 40) {
            if (keypos_old < lisize) {
              $("#search_" + keypos_old).removeClass("select_key");
              if (inputkeycodes != 40 && inputkeycodes != "") {
                if (keypos >= lisize - 2) {
                  keypos = 0;
                  keypos_old = keypos_old - 1;
                  $("input[name='keypos_old']").val(keypos);
                  $("input[name='keypos']").val(keypos + 1);
                } else {
                  keypos = keypos_old + 1;
                  $("input[name='keypos_old']").val(keypos_old + 1);
                  $("input[name='keypos']").val(keypos + 1);
                }
              } else {
                if (keypos >= lisize || keypos == 0) {
                  keypos = 0;
                }
                $("input[name='keypos_old']").val(keypos);
                $("input[name='keypos']").val(keypos + 1);
              }
            }
          } else if (keycodes == 38) {
            $("#search_" + keypos_old).removeClass("select_key");
            if (keypos <= 0 && inputkeycodes != "") {
              $("input[name='keypos_old']").val(keypos);
              $("input[name='keypos']").val(lisize - 1);
              keypos = keypos == 0 ? 0 : (lisize - 1);
            } else if (keypos <= 0 && inputkeycodes == "") {
              keypos = lisize - 1;
              $("input[name='keypos_old']").val(keypos);
              $("input[name='keypos']").val(keypos - 1);
            } else {
              if (inputkeycodes != 38 && inputkeycodes != "") {
                keypos_old = keypos_old;
                keypos = (keypos_old - 1) > -1 ? (keypos_old - 1) : (lisize - 1);
              }
              $("input[name='keypos_old']").val(keypos);
              $("input[name='keypos']").val(keypos - 1);
            }
          }
          $("input[name='keycodes']").val(keycodes);
          $("#search_" + keypos).addClass("select_key");
          var inputval = $("#search_" + keypos).attr("title");
          $("#relate_search").val(inputval);
        }
      });
    });</script>
  <script src="./forsearch_files/getEbook.js" type="text/javascript"></script>
  <script src="./forsearch_files/LoginWindow.js" type="text/javascript"></script>
  <link href="./forsearch_files/win_login20150728.css" rel="stylesheet" type="text/css">
  <script>function AddPDNothingNew(pid) {
      TransferPath = "http://misc2.dangdang.com/pdnothing/remote_add_stockout_pd.php";
      var param = pid + "&time=" + new Date().getTime();
      showMsgBox("", encodeURIComponent(param), TransferPath);
    }</script>
  <script type="text/javascript" src="./forsearch_files/getJS.php"></script>
  <script type="text/javascript" charset="gbk" src="./forsearch_files/adall.min.js"></script>
  @endforeach
  @endsection